package midcode;

public class MidStr {
    public String str;
    public String content;

    public MidStr(String str, String content) {
        this.str = str;
        this.content = content;
    }

    @Override
    public String toString() {
        return str + ":.asciiz\"" + content + "\"\n";
    }

    public String genTargetCode() {
        return String.format("%s: .asciiz \"%s\"\n", str, content);
    }
}

